package day10_poly.demo04_ploy;

public class Teacher extends Person {
    @Override
    public void eat() {
        System.out.println("老师吃饭");
    }
    @Override
    public void sleep() {
        System.out.println("老师睡觉");
}

    public Teacher() {
    }

    public Teacher(String name, int age, String sex) {
        super(name, age, sex);
    }
}
